-- GENERATED SPELL FOR [Crashing Wave-Spirit] --


function spell0_22309(pUnit, Event) --@Water Bolt,n/a--
pUnit:FullCastSpellOnTarget(34425,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22309', 2500, 1)
end

function Sorts_22309(pUnit, Event)
local choix_sorts_22309 = math.random(0, 0)
if choix_sorts_22309 == 0 then
pUnit:RegisterEvent('spell0_22309', 1, 1)
end
end

function mob22309_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22309', math.random(1500, 3000), 1)
end

function mob22309_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22309_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22309_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22309, 1, 'mob22309_Action')
RegisterUnitEvent(22309, 2, 'mob22309_Leave')
RegisterUnitEvent(22309, 3, 'mob22309_Kill')
RegisterUnitEvent(22309, 4, 'mob22309_Die')
